import http from '@/http/index'


export default {
    insert :{
        name:"新增仓库",
        url:"/api/warehouse",
        call: async function(params:any={}){
            return await http.post(this.url,params)
        }
    },
    select :{
        name:"仓库查询",
        url:"/api/warehouse",
        call: async function(params:any={}){
            return await http.get(this.url,params)
        }
    },
    update :{
        name:"仓库修改",
        url:"/api/warehouse",
        call: async function(params:any={}){
            return await http.put(this.url,params)
        }
    },
    delete :{
        name:"仓库删除",
        url:"/api/warehouse",
        call: async function(params:any={}){
            return await http.delete(this.url,params)
        }
    }

}